package bma.common.langutil.concurrent;

/**
 * 处理进程关闭的请求对象
 * 
 * @author 关中
 * @since 1.0 (imported from BMA.ESP Project)
 * 
 */
public class ProcessIntentClose implements Runnable {
	private Future4Task<Boolean> future;

	public ProcessIntentClose() {
		super();
	}

	public ProcessIntentClose(Future4Task<Boolean> future) {
		super();
		this.future = future;
	}

	public Future4Task<Boolean> getFuture() {
		return future;
	}

	public void setFuture(Future4Task<Boolean> future) {
		this.future = future;
	}

	@Override
	public void run() {
		Runtime.getRuntime().exit(9999);
	}

	@Override
	public String toString() {
		return getClass().getSimpleName();
	}
}
